
package com.rt.schedulenew.utils.jwt.common;
import java.io.Serializable;
public class JwtToken implements Serializable
{
    private static long serialVersionUID = 3284697937606964760L;
    
    public Header getHeader() {
        return new Header();
    }
    
    public Payload getPayload() {
        return new Payload();
    }
    
    public Signature getSignature() {
        return new Signature();
    }
    
    public static class Header
    {
        private String typ;
        private String alg;
        
        public String getTyp() {
            return this.typ;
        }
        
        public String getAlg() {
            return this.alg;
        }
        
        public void setTyp(String typ) {
            this.typ = typ;
        }
        
        public void setAlg(String alg) {
            this.alg = alg;
        }
       
    }
    
    public static class Payload
    {
        private String iss;
        private Long iat;
        private Long exp;
        private String sessionId;
        private String userId;
        private String userName;
        private String sysCode;
        private String type;
        private String sysName;
        
        public String getIss() {
            return this.iss;
        }
        
        public Long getIat() {
            return this.iat;
        }
        
        public Long getExp() {
            return this.exp;
        }
        
        public String getSessionId() {
            return this.sessionId;
        }
        
        public String getUserId() {
            return this.userId;
        }
        
        public String getUserName() {
            return this.userName;
        }
        
        public String getSysCode() {
            return this.sysCode;
        }
        
        public String getType() {
            return this.type;
        }
        
        public String getSysName() {
            return this.sysName;
        }
        
        public void setIss(String iss) {
            this.iss = iss;
        }
        
        public void setIat(Long iat) {
            this.iat = iat;
        }
        
        public void setExp(Long exp) {
            this.exp = exp;
        }
        
        public void setSessionId(String sessionId) {
            this.sessionId = sessionId;
        }
        
        public void setUserId(String userId) {
            this.userId = userId;
        }
        
        public void setUserName(String userName) {
            this.userName = userName;
        }
        
        public void setSysCode(String sysCode) {
            this.sysCode = sysCode;
        }
        
        public void setType(String type) {
            this.type = type;
        }
        
        public void setSysName(String sysName) {
            this.sysName = sysName;
        }
    }
    
    public static class Signature
    {
        private String signature;
        
        public String getSignature() {
            return this.signature;
        }
        
        public void setSignature(String signature) {
            this.signature = signature;
        }
    }
}
